package com.gxa.mapper;

import com.gxa.common.JsonResult;
import com.gxa.common.R;
import com.gxa.pojo.Worksheet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorksheetMapper {
    //添加工作记录
    public int addWorkSheet(Worksheet worksheet);
    //查询工作记录
    public List<Worksheet> queryWorkSheetList(Integer repair_id);
    //删除工作记录
    public int deleteWorkSheet(Integer worksheetid);
    //更新工作记录
    public int updateWorkSheet(Worksheet worksheet);
    //按照工单id删除工作中记录
    public int deleteWorkSheetByRepairId(@Param("repairids") List<Integer> repairids);
    //查询工单对应的工作记录数量
    public Integer CountByRepair(Integer repair_id);
}
